class JsonData {
  late Map<String, dynamic> data = {};

  setAll(Map<String, dynamic> data) {
    data.forEach((key, value) {
      this.data[key] = value;
    });
  }

  set<T>(String key, T value) {
    this.data[key] = value;
  }

  Map<String, dynamic> getAll() {
    return this.data;
  }

  T get<T>(String key) {
    return this.data[key];
  }
}
